Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set enableRemoteModule to false #267

Merged
merged 4 commits into from
Nov 6, 2023
Merged

Conversation

kaorun343
Copy link
Contributor

remote module is removed from electron v14.
https://www.electronjs.org/blog/electron-14-0#removed-remote-module

I updated the codes that utilizes remote module and set enableRemoteModule to false.


const Bdash = {
async initialize(): Promise<void> {
// @see https://github.com/bdash-app/bdash/pull/99#issuecomment-590011101
window.process["browser"] = true;

const Config = await ipcRenderer.invoke("getConfig");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Config object uses app module, so I added getConfig channel and changed to make Config object in main process.

@@ -49,6 +49,7 @@
"pg": "8.7.1",
"plotly.js-basic-dist-min": "1.57.1",
"react": "16.8.6",
"react-contexify": "^6.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving the implementation of creating context menu in main process, I added react-contextify instead.

@morishin morishin merged commit 5bff9de into bdash-app:master Nov 6, 2023
2 checks passed
@kaorun343 kaorun343 deleted the remote branch November 6, 2023 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants